﻿using System.Runtime.Serialization;
using YunBox2.Contracts.Core;

namespace YunBox2.Contracts.FoundationModels
{
	/// <summary>
	/// 纸板类型
	/// </summary>
	[DataContract]
	public class BoardType : BizObject
	{
		[DataMember]
		private double _nailWidth;

		[DataMember]
		private string _name;

		[DataMember]
		private double _plusWidth;

		[DataMember]
		private double _thickness;


		public virtual string Name
		{
			get
			{
				return _name;
			}
			set
			{
				if (_name != value)
				{
					_name = value;
					RaisePropertyChanged("Name");
				}
			}
		}

		/// <summary>
		/// 纸板厚度,单位:mm
		/// </summary>
		public virtual double Thickness
		{
			get
			{
				return _thickness;
			}
			set
			{
				if (_thickness != value)
				{
					_thickness = value;
					RaisePropertyChanged("Thickness");
				}
			}
		}

		/// <summary>
		/// 粘合口宽度,单位:cm
		/// </summary>
		public virtual double NailWidth
		{
			get
			{
				return _nailWidth;
			}
			set
			{
				if (_nailWidth == value)
				{
					_nailWidth = value;
					RaisePropertyChanged("NailWidth");
				}
			}
		}

		/// <summary>
		/// 插接口宽度,单位:cm
		/// </summary>
		public virtual double PlusWidth
		{
			get
			{
				return _plusWidth;
			}
			set
			{
				if (_plusWidth != value)
				{
					_plusWidth = value;
					RaisePropertyChanged("PlusWidth");
				}
			}
		}

		
	}
}